Skip to content

Conversation

typotter
Copy link
Collaborator

@typotter typotter commented May 30, 2025

Motivation

OSSRH is due to be sunset 30th June.
There is not yet official support in the gradle-maven-publish plugin, but jReleaser handles the new endpoints.

Changes

  • Use the JReleaser gradle plugin to manage the deployment of versioned jars

@typotter typotter requested a review from aarsilv May 31, 2025 03:10
Copy link
Collaborator

@aarsilv aarsilv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job figuring this out!

run: ./gradlew clean publish -Prelease

- name: Deploy to Maven Central
run: ./gradlew jreleaserDeploy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK 17
- name: Set up JDK 8
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧟 😭

@@ -1,7 +1,7 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'org.jreleaser' version '1.18.0'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Comment on lines +165 to +166
// Custom task to ensure we can conditionally publish either a release or snapshot artifact
// based on a command line switch. See github workflow files for more details on usage.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aarsilv aarsilv assigned typotter and unassigned aarsilv May 31, 2025
@typotter typotter merged commit 7fefeee into main Jun 2, 2025
4 checks passed
@typotter typotter deleted the typo/patch-latest branch June 2, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants